close all
X=[-3 3; 1 1]
plot(X(1,:),X(2,:),'lineWidth',2)
axis square
grid on
axis([-2 2 -1 3])
xlabel('x_1')
ylabel('x_2')
hold on
zero=zeros(2,1);
u=[0;1];
v=[1;1];
ceuArrow(zero,u,'b',2,'-',1)
text(u(1)+0.05,u(2)+0.15,'u')
ceuArrow(zero,v,'b',2,'-',1)
text(v(1)+0.05,v(2)+0.15,'v')
u_v=u+v;
ceuArrow(zero,u_v,'r',2,'-',1)
text(u_v(1)+0.05,u_v(2)+0.15,'u+v')
